Clarify documentation. (#69026)
authorMatthias Clasen <matthiasc@src.gnome.org>
Fri, 18 Jan 2002 21:37:31 +0000 (21:37 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 18 Jan 2002 21:37:31 +0000 (21:37 +0000)
        * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
        Clarify documentation. (#69026)

        * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix
        missing initialization of adjustment. (#69025)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkitemfactory.c
gtk/gtkprogressbar.c

index 3aa91ff942820ff548e0a18a4207713667a94636..a55b43e65c4068e4d8b81865fe67475e5c7b1424 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2002-01-18  Matthias Clasen  <matthiasc@poet.de>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
+       Clarify documentation. (#69026)
+
+       * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
+       missing initialization of adjustment. (#69025)
+
 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
 
        Simplify Makefiles. 
index 3aa91ff942820ff548e0a18a4207713667a94636..a55b43e65c4068e4d8b81865fe67475e5c7b1424 100644 (file)
@@ -1,3 +1,11 @@
+2002-01-18  Matthias Clasen  <matthiasc@poet.de>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
+       Clarify documentation. (#69026)
+
+       * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
+       missing initialization of adjustment. (#69025)
+
 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
 
        Simplify Makefiles. 
index 3aa91ff942820ff548e0a18a4207713667a94636..a55b43e65c4068e4d8b81865fe67475e5c7b1424 100644 (file)
@@ -1,3 +1,11 @@
+2002-01-18  Matthias Clasen  <matthiasc@poet.de>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
+       Clarify documentation. (#69026)
+
+       * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
+       missing initialization of adjustment. (#69025)
+
 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
 
        Simplify Makefiles. 
index 3aa91ff942820ff548e0a18a4207713667a94636..a55b43e65c4068e4d8b81865fe67475e5c7b1424 100644 (file)
@@ -1,3 +1,11 @@
+2002-01-18  Matthias Clasen  <matthiasc@poet.de>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
+       Clarify documentation. (#69026)
+
+       * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
+       missing initialization of adjustment. (#69025)
+
 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
 
        Simplify Makefiles. 
index 3aa91ff942820ff548e0a18a4207713667a94636..a55b43e65c4068e4d8b81865fe67475e5c7b1424 100644 (file)
@@ -1,3 +1,11 @@
+2002-01-18  Matthias Clasen  <matthiasc@poet.de>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
+       Clarify documentation. (#69026)
+
+       * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
+       missing initialization of adjustment. (#69025)
+
 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
 
        Simplify Makefiles. 
index 3aa91ff942820ff548e0a18a4207713667a94636..a55b43e65c4068e4d8b81865fe67475e5c7b1424 100644 (file)
@@ -1,3 +1,11 @@
+2002-01-18  Matthias Clasen  <matthiasc@poet.de>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
+       Clarify documentation. (#69026)
+
+       * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
+       missing initialization of adjustment. (#69025)
+
 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
 
        Simplify Makefiles. 
index 3aa91ff942820ff548e0a18a4207713667a94636..a55b43e65c4068e4d8b81865fe67475e5c7b1424 100644 (file)
@@ -1,3 +1,11 @@
+2002-01-18  Matthias Clasen  <matthiasc@poet.de>
+
+       * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
+       Clarify documentation. (#69026)
+
+       * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
+       missing initialization of adjustment. (#69025)
+
 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
 
        Simplify Makefiles. 
index 944780f47c706155e4e76c574595773a5a42249e..780d2d7b1c79f56df9f1dea93ea1a4188d2af0a2 100644 (file)
@@ -710,8 +710,11 @@ gtk_item_factory_get_widget (GtkItemFactory *ifactory,
  * @returns: the widget which corresponds to the given action, or %NULL
  *   if no widget was found
  *
- * Obtains the widget which was constructed from the first #GtkItemFactoryEntry
+ * Obtains the widget which was constructed from the #GtkItemFactoryEntry
  * with the given @action.
+ *
+ * If there are multiple items with the same action, the result is 
+ * undefined.
  */
 GtkWidget*
 gtk_item_factory_get_widget_by_action (GtkItemFactory *ifactory,
index 879f44332f524f3537f7f3aa3ce04f5ad5453920..d6c16147fdbab83f3e4a729e20cecb10362299f6 100644 (file)
@@ -459,6 +459,9 @@ gtk_progress_bar_size_request (GtkWidget      *widget,
 
   if (progress->show_text && pbar->bar_style != GTK_PROGRESS_DISCRETE)
     {
+      if (!progress->adjustment)
+       gtk_progress_set_adjustment (progress, NULL);
+
       buf = gtk_progress_get_text_from_value (progress, progress->adjustment->upper);
 
       layout = gtk_widget_create_pango_layout (widget, buf);